﻿using UnityEngine;
using UnityEngine.Serialization;
using System;

using HWGames.Bundles.Internal;

namespace HWGames.Bundles.Internal {
    [SerializeField]
    [CreateAssetMenu(fileName = "Assets/Resources/SDKBundle/Settings", menuName = "HW Games/SDK Bundle")]
    public class SDKBundleSettings : ScriptableObject {
        private const string SETTING_RESOURCES_PATH = "SDKBundle/Settings";

        public static SDKBundleSettings Load() => Resources.Load<SDKBundleSettings>(SETTING_RESOURCES_PATH);

        public bool enableFPS;

        public string gameAnalyticsAndroidGameKey = "";
        public string gameAnalyticsAndroidSecretKey = "";
        public string gameAnalyticsIosGameKey = "";
        public string gameAnalyticsIosSecretKey = "";

        public string facebookAppId = "";
        public string clientToken = "";

        public bool enableOpenIntervalTime = true;
        public float firstOpenInterstitialIntervalTime = 180f;
        public float OpenInterstitialIntervalTime = 60f;

        public float interstitialIntervalTime = 10f;
        public bool disableVideo = false;
        public bool enableBanner;
        public bool enableIOSBanner;

        public string androidAdmobAppID = "";
        public string androidRewardAdUnitID = "";
        public string androidInterstitialAdUnitID = "";
        public string androidBannerAdUnitID = "";

        public string iOSAdmobAppID = "";
        public string iOSRewardAdUnitID = "";
        public string iOSInterstitialAdUnitID = "";
        public string iOSBannerAdUnitID = "";

        public string SingularAPIkey = "solid_games_limited_ad1fc7af";
        public string SingularSecretkey = "438dc85ccf73abed8ff67d1ef2e1776f";

        [ReadOnly]
        public string EditorIdfa;

    }
}